#!/bin/bash

source ./off.sh
./download-config.sh
./run.sh & 

if [ $? -eq 0 ]; then
    echo -e "\033[0;32m./run.sh executed successfully and is running in the background\033[0m"
else
    echo "==============================================="
    echo -e "\033[0;32m./run.sh failed to execute\033[0m"
fi

source ./start.sh

if [ $? -eq 0 ]; then
    echo -e "\033[0;32m./start.sh executed successfully\033[0m"
    echo -e "\033[0;31m  port 7890:7890 port 9090:9090 \033[0m"
else
    echo "==============================================="
    echo -e "\033[0;32m./start.sh failed to execute\033[0m"
fi

echo "============================================================="
